package com.huqing.icu.service.savestrategy;

import com.huqing.icu.inout.in.app.HouseAddReq;
import com.huqing.icu.inout.in.app.HouseUpdateReq;

public abstract class AbstractHouseSaveService {

    /**
     * 匹配策略
     *
     * @param houseOwner 房东身份 1-转租租客 2-中介 3-二手房东 4-业主(一手房东)
     * @return
     */
    public abstract boolean judgeHouseOwner(Integer houseOwner);

    /**
     * 新增房源时校验参数
     *
     * @param addReq
     */
    public abstract void checkAddReq(HouseAddReq addReq);

    // public abstract void checkUpdateReq(HouseUpdateReq addReq);

    /**
     * 新增房源
     *
     * @param addReq
     * @return
     */
    public abstract Integer insert(HouseAddReq addReq);

    /**
     * 修改房源
     *
     * @param updateReq
     * @return
     */
    public abstract Integer update(HouseUpdateReq updateReq);


}
